package org.dreamwork.sso.saml2.spec;

import javax.servlet.ServletContext;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.cert.X509Certificate;

/**
 * Created with IntelliJ IDEA.
 * User: seth.yang
 * Date: 13-8-13
 * Time: 下午12:01
 */
public interface IKeyFetcher {
    PrivateKey getPrivateKey (ServletContext context, String id);
    PublicKey getPublicKey (ServletContext context, String id);
    X509Certificate getCertificate (ServletContext context, String id);
}
